var express = require('express');
var router = express.Router();
var newsComment=require("../controll/newsComment");

/* GET newsComments listing. */
router.get('/news', function(req, res, next) {
    newsComment.getNews(req,res,next);
  });
router.post('/list', function(req, res, next) {
  newsComment.list(req,res,next);
});
router.post('/data', function(req, res, next) {
  newsComment.post(req,res,next);
});
router.put('/data/:id', function(req, res, next) {
  newsComment.put(req,res,next);
});
router.delete('/data/:id', function(req, res, next) {
  newsComment.delete(req,res,next);
});
router.post('/manydata/delete',function(req, res, next) {
  newsComment.deletemany(req,res,next);
});
module.exports = router;